//定位下拉框
package EXample;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;

import static java.lang.Thread.sleep;

public class page03 {
    public static void main(String[] args) throws InterruptedException {
        WebDriver webDriver=new ChromeDriver();
        webDriver.get("http://localhost:63342/TEST02/EXample/Test03.html?_ijt=5muu9h9m9qelouv32vpt3r4k6j");
        sleep(3000);
        WebElement element=webDriver.findElement(By.cssSelector("#ShippingMethod"));
        Select select=new Select(element);
        sleep(3000);
        select.selectByValue("8.34");
    }
}
